import type { ColumnType } from 'ant-design-vue/lib/table'

export const tableColumns: ColumnType[] = [
  {
    title: '序号',
    key: 'index',
    customRender: ({ index }) => index + 1
  },
  { title: '扫描码', dataIndex: 'scanCode', align: 'center' },
  { title: '产品名称', dataIndex: 'productName', align: 'center' },
  { title: '码类型', dataIndex: 'scanCodeType', align: 'center' }
]

export const scanCodeTypeObj = [
  { value: 1, label: '包装码' },
  { value: 2, label: '身份码' }
]
